import request from '../common/request';

const base = 'adminApi/quartz';


export async function selectPage(param: any) {
  return request({
    url: `${base}/selectPage`,
    method: 'post',
    data: { ...param, crypto: true },
  });
}

export async function deleteById(param: any) {
  return request({
    url: `${base}/deleteById`,
    method: 'post',
    data: { ...param, crypto: true },
  });
}

export async function save(param: any) {
  return request({
    url: `${base}/save`,
    method: 'post',
    data: { ...param, crypto: true },
  });
}

export async function updateQuartzState(param: any) {
  return request({
    url: `${base}/updateQuartzState`,
    method: 'post',
    data: { ...param, crypto: true },
  });
}
